#ifndef driver_Xbox_Joystick_H
#define driver_Xbox_Joystick_h

/* 手柄面板上所有可控制按键/轴（包括一个时间量） */
typedef struct {
    int     time;
    int     a;
    int     b;
    int     x;
    int     y;
    int     lb;
    int     rb;
    int     select;
    int     start;
    int     home;
    int     lo;
    int     ro;

    int     lx;
    int     ly;
    int     rx;
    int     ry;
    int     lt;
    int     rt;
    int     xx;
    int     yy;
} xbox_map_t;




int test(void);

class JoyStickDriver {
public:
    JoyStickDriver(void);
    ~JoyStickDriver(void);
    int JoyStickInit(void);
    int JoyStickRead(xbox_map_t *pMap);
    int JoyStickClose();

private:
    int JoystickFd ;

};

#endif